package top.lixunda.common.validate.core;

/**
 * @author Xumda
 * @version time:2019/11/19 16:02
 */
@SuppressWarnings("WeakerAccess")
public class ValidateError {

    private String errorMsg;

    public ValidateError() {
    }

    public ValidateError(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public ValidateError setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
        return this;
    }

    @Override
    public String toString() {
        return errorMsg == null ? "" : errorMsg;
    }

}
